#!/usr/bin/env python
#-*-coding: utf-8;-*-
# By: Renegado
print "[0]-> Esconder texto\n[1]-> Ler texto escondido\n"
opc = int(input("opc-> "))
if opc == 0:
  img = raw_input("IMG-> ")
  txt = raw_input("TXT-> ")
  with open(txt, "rb") as r:
	with open(img, "ab") as w:
	  w.write(str(r.read()))
  print "Feito!"
elif opc == 1:
  img = raw_input("IMG-> ");
  with open(img, "rb") as r:
    print r.read()
else:
  print "???"
